package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.vo.DishOverViewVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface DishMapper {
    List<Dish> page(DishPageQueryDTO dishDTO);

    void insert(Dish dish);

    Integer countStart(List<Long> ids);

    void deleteBatch(List<Long> ids);

    Dish selectById(Long id);

    void update(Dish dish);


    List<Dish> listByCategoryId(Long categoryId);


    Integer coutByMap(Map param);
}
